﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dome2
{
    public enum AllEat
    {
        中国菜,
        美国菜,
        印度菜

    }
    class CookRobot : Robot
    {
        public AllEat Eat { get; set; }
        public CookRobot(string name, AllEat Eat) :base(name) {
            this.Eat = Eat;
        }
        public override void Working() {
            Console.WriteLine("我是{0}机器人，我会做{1},你喜欢我嘛？？？宝！",base.name,this.Eat);

        }
    }
}
